<div class="row">
  <div class="col-md-1">&nbsp;</div>
  <div class="col-md-10">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><%= contract_name %></h3>
      </div>
      <%contract_abi.each do |abi|%>
          <%if abi['type'] == 'function'%>
            <%=tag_start%>= form_tag('<%= abi['name'].underscore %>') do <%=tag_end%>
                <div class="panel-body">
                  <label for="basic-url"><%=abi['name']%></label>
                  <%if abi['inputs'].size > 0%>
                      <%i = 0%>
                      <%abi['inputs'].each do |input|%>
                          <%i += 1%>
                  <div class="form-group">
                    <input type="text" class="form-control" name="contract_input[]" id="param<%=i%>" placeholder="<%=input['type']%>">
                  </div>
                      <%end%>
                  <%end%>
                  <%=tag_start%>unless params[:msg_<%=abi['name'].underscore%>].blank?<%=tag_end%>
                      <p class="bg-success"><%=tag_start%>=params[:msg_<%=abi['name'].underscore%>]<%=tag_end%></p>
                  <%%end%>
                  <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                  </div>
                </div>

            <%%end%>
          <%end%>
      <%end%>
    </div>
  </div>
  <div class="col-md-1">&nbsp;</div>
</div>